package com.haoze.nurseapp.service.feign;

import com.haoze.common.response.Result;
import com.haoze.nurseapp.vo.EmrFile;
import feign.Headers;
import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@Headers("Content-Type:application/json")
@FeignClient(name = "api-nurse",url = "http://localhost:8109",fallback = FallbackFactory.Default.class, configuration = FeignSupportConfig.class)
public interface NurseService {
    /**
     * 获取所有病区
     * @return
     */
    @RequestMapping(value = "/nurse/patient/depts", method = RequestMethod.GET)
    Result getDepts();

    @RequestMapping(value = "/nurse/file/create", method = RequestMethod.GET)
    Result create(@RequestParam String inpatNum,@RequestParam String recordType);

    @RequestMapping(value = "/nurse/file/save", method = RequestMethod.POST)
    Result save(@RequestBody String json);

    @RequestMapping(value = "/nurse/file/oneRecord", method = RequestMethod.GET)
    Result oneRecord(@RequestParam String fileDataId,@RequestParam String inpatNum,@RequestParam String recordType);

    @RequestMapping(value = "/nurse/file/editSave", method = RequestMethod.POST)
    Result editSave(@RequestBody String json);

    @RequestMapping(value = "/queryStatistics/queryPatientPaymentNotice", method = RequestMethod.GET)
    Result queryPatientPaymentNotice(@RequestParam String wardId,@RequestParam String queryString);

    @RequestMapping(value = "/nurse/order/print", method = RequestMethod.GET)
    Result print(@RequestParam String type, @RequestParam String inpatNum, @RequestParam String inpatorderdataId);
}
